package com.panshi.mapper;

import com.panshi.pojo.Hotnews;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;

@Repository
@Mapper
public interface IHotnewsMapper {
    public Set<Hotnews> queryCommentsList();

    public void addHot(@Param("cid") Integer cid);

    public void addNews(Hotnews hotnews);

    public void newsDel(@Param("cid") Integer cid);

    public Hotnews getNewsByCid(@Param("cid") Integer cid);

    public void updatenews(Hotnews hotnews);
}
